import cv2
import numpy as np

girl=cv2.imread(r'CV-Pictures/015.jpg')
rose=cv2.imread(r'CV-Pictures/036.jpg')
h,w=girl.shape[:2]
rose=cv2.resize(rose,(w,h))
img=girl+rose #通过np方式简单相加
img2=cv2.add(girl,rose) #通过openCV简单融合
img3=cv2.addWeighted(girl,0.8,rose,0.1,0)
# cv2.imshow('img',girl)
# cv2.imshow('rose',rose)
cv2.imshow('img',img)
cv2.imshow('cv_add',img2)
cv2.imshow('add_weight',img3)
cv2.waitKey(0)

cv2.destroyAllWindows()